package com.cloudpolice.door.model.InPutParam;


import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author ：梁昊，后端工程师：flyman5，前端工程师：孙耀
 * @create 2020-02-28 12:17
 * @function 离线比对, 门禁机上传记录主表类
 * @editLog
 */
public class FaceLogBaseInsertInParam extends FaceLogLineInsertInParam {
   /* public FaceLogBaseInsertInParam() {
        this.doorTime = new Date();
    }*/

    /**
     * 主键
     */
    private String id;

    /**
     * 人员ID（居民，物业人员，警务人员)
     */
    private String personId;
    /**
     * 人员类型（0：居民，1：物业人员，2：警务人员)
     */
    private Integer personType;
    /**
     * 框脸背景图片ID(没有人脸时，本图片为背景图片):离线模式：不能为空，在线模式：门禁机上传时，为空；
     */
    private String faceBasePicId;
    /**
     * RFID卡号:此属性为RFID模式时，门禁机上传不能为空，刷新或二维码模式时，为空；
     */
    private String cardId;
    /**
     * 开门方式（0:刷脸，1:RFID卡，2:二维码，3:远程开门）
     */
    private Integer openType;
    /**
     * 人工智能算法名称
     */
    private String aiType;
    /**
     * 门禁机抓拍时间
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    private Date doorTime;
    /**
     * 备注：为空；
     */
    private String remark;
    /**
     * 比对方式,1-在线，0-离线
     */
    private Boolean aiClass;

    public void setAiClass(Boolean aiClass) {
        this.aiClass = aiClass;
    }

    public Boolean getAiClass() {
        return aiClass;
    }

    @Override
    public String getBasePicId() {
        return super.getBasePicId();
    }

    @Override
    public void setBasePicId(String basePicId) {
        super.setBasePicId(basePicId);
    }

    @Override
    public String getSn() {
        return super.getSn();
    }

    @Override
    public void setSn(String sn) {
        super.setSn(sn);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId;
    }

    public Integer getPersonType() {
        return personType;
    }

    public void setPersonType(Integer personType) {
        this.personType = personType;
    }

    public String getFaceBasePicId() {
        return faceBasePicId;
    }

    public void setFaceBasePicId(String faceBasePicId) {
        this.faceBasePicId = faceBasePicId;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public Integer getOpenType() {
        return openType;
    }

    public void setOpenType(Integer openType) {
        this.openType = openType;
    }

    public String getAiType() {
        return aiType;
    }

    public void setAiType(String aiType) {
        this.aiType = aiType;
    }

    public Date getDoorTime() {
        return this.doorTime;
    }

    public void setDoorTime(Date doorTime) {
        this.doorTime = doorTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }
}
